<?php

class PublicController extends Controller {
	public $layout='//layouts/main';
	public $defaultAction = "Index";
	
	public function init(){
		Yii::app()->theme = 'frontend';
		parent::init();
	}
	
	public function actionIndex() {
		$this->render('index');
	}
	
	public function actionShipping() {
		$static = StaticPages::model()->getPageStatic("shipping--delivery");
		
		$this->render('index',array(
			'static'=>$static
		));
	}
	
	public function actionTerms() {
		$static = StaticPages::model()->getPageStatic("terms--conditions");
	
		$this->render('index',array(
			'static'=>$static
		));
	}
	
	public function actionPrivacy() {
		$static = StaticPages::model()->getPageStatic("privacy-policy");
	
		$this->render('index',array(
			'static'=>$static
		));
	}
}